#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "page_envmonitor.h"
#include "page_video.h"
#include "settingsdialog.h"

class SettingsDialog;

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    // 温度阈值
    static double temperatureThreshold;

private slots:
    void on_pBtn_envMonitor_clicked();

    void on_pBtn_videoMonitor_clicked();

    void on_setting_clicked();

private:
    Ui::Widget *ui;
    Page_envMonitor *m_pageEnv;
    Page_video *m_pageVideo;
    SettingsDialog *m_setting;


};
#endif // WIDGET_H
